package com.jerry.consumer;

import com.jerry.consumer.rule.CustomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

@SpringBootApplication
@EnableEurekaClient        //启用Eureka服务注册发现
@EnableFeignClients        //启用Feign声明式服务调用
// 为provider-ad微服务使用指定的随机算法
// 注意：此处的serviceId必须大写
//@RibbonClient(name="PROVIDER-AD",configuration = CustomRule.class)
public class CustomApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomApplication.class, args);
    }

}
